package org.flashbrighton.as3bots.models
{
	public class GemPosition
	{
		private var _direction:Number;		
		private var _distance:Number;		
		private var _gemBonus:int;
		
		public function GemPosition(direction:Number, distance:Number, gemBonus:int)
		{
			_direction = direction;
			_distance = distance;
			_gemBonus = gemBonus;
		}
		
		/** 
		 * returns the direction of the detected bot
		 * a value between -1 and 1.
		 * 0 meaning right in front of the head of the bot, 
		 * -1 or 1 the back, 
		 * 0.5 the right side and -0.5 the left one...
		 * 
		 */
		public function get direction():Number
		{
			return _direction;
		}		
		
		/** 
		 * returns the distance of the detected bot in meter
		 * the arena is about 10 by 10 meters.
		 * 
		 */
		public function get distance():Number
		{
			return _distance;
		}		
		
		/** 
		 * returns heath bonus of the gem
		 * 
		 */
		public function get gemBonus():int
		{
			return _gemBonus;
		}		
	}
}